package Game;

import Animation.Piece;


public class Player
{
    String playerName;

    int currentXPos;
    int currentYPos;
    int destXPos;
    int destYPos;

    int movesRemaining;
    double[] color;
    boolean myTurn = false;
    Piece piece;

    public Player(String name, int playerNumber)
    {
        playerName = name;
        currentXPos =35;
        currentYPos =35;
        destXPos = 35;
        destYPos = 35;
        movesRemaining = 10;
        color = new double[3];

       switch(playerNumber)
       {
           case 0:
               color[0] = 100;
               color[1] = 100;
               color[2] = 100;
               currentXPos = 35;
               currentYPos = 35;
               break;

           case 1:
               color[0] = 0;
               color[1] = 300;
               color[2] = 300;
               currentXPos = 35;
               currentYPos = 65;
               break;
           case 2:
               color[0] = 300;
               color[1] = 0;
               color[2] = 300;
               currentXPos = 65;
               currentYPos = 275;
               break;
           case 3:
               color[0] = 300;
               color[1] = 300;
               color[2] = 0;
               break;
           case 4:
               color[0] = 0;
               color[1] = 0;
               color[2] = 300;
               break;
           case 5:
               color[0] = 300;
               color[1] = 0;
               color[2] = 0;
               break;
           case 6:
               color[0] = 0;
               color[1] = 300;
               color[2] = 0;
               break;
       }

       piece = new Piece(color);


    }

    public void setMoves(int moves)
    {
        movesRemaining = moves;
    }

    public String getPlayerName() {
        return playerName;
    }

    public double[] getColor() {
        return color;
    }

    public int getCurrentX() {
        return currentXPos;
    }

    public int getCurrentY() {
        return currentYPos;
    }

    public void setCurrentX(int xPos) {
        this.currentXPos = xPos;
    }

    public void setCurrentY(int yPos) {
        this.currentYPos = yPos;
    }

    public Piece getPiece() {
        return piece;
    }

    public boolean isMyTurn() {
        return myTurn;
    }

    public void setMyTurn(boolean myTurn) {
        this.myTurn = myTurn;
    }

    public int getDestXPos() {
        return destXPos;
    }

    public void setDestXPos(int destXPos) {
        this.destXPos = destXPos;
    }

    public int getDestYPos() {
        return destYPos;
    }

    public void setDestYPos(int destYPos) {
        this.destYPos = destYPos;
    }

    public int getMovesRemaining() {
        return movesRemaining;
    }

    public void setMovesRemaining(int movesRemaining) {
        this.movesRemaining = movesRemaining;
    }
    
    
    


}